import com.pojo.User;
import com.service.userService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class test {
    @Test
    public void test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        userService lidongpService = context.getBean("lidongpService",userService.class);
        List<User> users=null;
        users  =lidongpService.queryAllUser();
        System.out.println(users);

    }
}
